package net.pws.oos.biz.query;

import java.util.List;
import java.util.Map;

import net.pws.oos.biz.model.Project;
import net.pws.oos.biz.query.parameter.ProjectQueryParameter;

@SuppressWarnings("rawtypes")
public interface ProjectFinder {

    public int count(ProjectQueryParameter queryParameter);

    /**
     * 
     * @param queryParameter
     * @param start
     * @param limit
     * @return all the project list
     */
	public List<Map> getProjectList(ProjectQueryParameter queryParameter,
                                        int start,
                                        int limit);
    
    //public boolean isProjectExists(String name, String code, String oldId);
    
    /**
     * 获取项目
     * @param id
     * @return
     */
    public Map getProject(String id);
    
    /**
     * 根据项目名称获取项目
     * @param name
     * @return
     */
    public Project getProjectByName(String name);

}
